package com.qf.test;

import com.qf.entity.Users;
import com.qf.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.text.SimpleDateFormat;
import java.util.List;

public class demo2 {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("springData.xml");
        UserService userService =(UserService) applicationContext.getBean("usersServiceimpl");
        /*Users users=new Users();
        users.setUsername("zhaoyuan1");
        users.setPassword("654321");
        Users users1 = userService.insertUsers(users);
        System.out.println(users1);*/
       /* userService.deleteuserbyid(1);*/
       //Users zhaoyuan1 = userService.findByusernameAndPassword("zhaoyuan1", "654321");

        /*List<Users> byBirthdayBetween = userService.findByBirthdayBetween("2019-9-5", "2019-9-20");
        for (Users users : byBirthdayBetween) {
            System.out.println(users);
        }*/



    }
}
